package com.xinyi.shicihui.pojo.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author xinyi
 * @desc
 * @date 2022/1/21
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@Document(collection = "category")
public class Category {

    @Id
    private String id;

    @ExcelProperty("title")
    private String type;
}
